package StudyCode.summary.mycollection;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class SortListOfStringWithCollectionsSortMethod {
	public static void main(String[] args) {
		List<String> list = new ArrayList<>();
		list.add("b");
		list.add("z");
		list.add("t");
		System.out.println("排序前：" + list);
		Collections.sort(list);
		System.out.println("排序后：" + list);
	}
}
